package com.pig.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig.pojo.log.Logs;
import com.pig.pojo.user.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LogMapper extends BaseMapper<Logs> {
    /**分页查询用户信息*/
    @Select("select * from p_log order by createdTime desc limit #{startIndex},#{limit}")
    List<Logs> findUserByPage(int startIndex, int limit);
    /**保存用户行为日志*/
    int insertUserLogs(Logs log);
}
